//引入axios实例
import http from "@/util/request";

export function login(val){
    return http({
        method:"GET",
        url:"/admin/login",
        params: val
    })
}


export function getCode(val) {
    return http({
        method: "GET",
        url: "/validate/get",
        params: val
    })
}

//查询管理员信息
export function selectAdminsByCondition(val) {
    return http({
        method: "GET",
        url: "/admin/selectAdminsByCondition",
        params: val
    })
}

export function resetPassword(val){
    return http({
        method: "PUT",
        url: "/admin/resetPassword",
        params: val
    })
}

